<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ include file="/common/taglibs.jsp"%>
<style type="text/css">
.dateWidth1{
   width:195px;
}
.selectWidth2{
   width:205px;
}
</style>
<x:parse xml="${param.xmlstr}" var="xmlData" />
<table class="t_css" width="100%" border="0" cellpadding="0" id="basicInfo"
	cellspacing="1">
	<tr>
		<td class="t_bar2" colspan="6">基本信息
		</td>
		</tr>
	<tr>
		<td align="right"><span class="color_red">*</span>项目名称：</td>
		<td  colspan="5">
			<input id="zh_title" name="proposal/zh_title" label="项目名称" type="text" required class="input_css required maxlength:100"  style="width: 680px;" maxlength="100" value="<x:out select="$xmlData/data/proposal/zh_title" />"/> 
		</td>
	</tr>
	<tr>
		<td  align="right"><span class="color_red">*</span>指南代码：</td>
		<td  colspan="5">
			<input name="proposal/guide_code" label="指南代码" type="text" required class="input_css required maxlength:100"  style="width: 680px;" maxlength="100" value="<x:out select="$xmlData/data/proposal/guide_code" />"/> 
		</td>
	</tr>
	<tr>
		<td  align="right"><span class="color_red">*</span>项目实施地点：</td>
		<td  colspan="5">
			<input name="proposal/address" label="项目实施地点" type="text" required class="input_css required maxlength:100"  style="width: 680px;" maxlength="100" value="<x:out select="$xmlData/data/proposal/address" />"/> 
		</td>
	</tr>
	<tr>
	<td align="right"><span class="color_red">*</span>研发形式：</td>
	<td nowrap  colspan="5" valign="middle">
	<label> <input type="radio" class="do " id="advant_01" style="vertical-align: middle;" name="research" label="独立研发" value="01" /><span style="vertical-align: middle;">独立研发</span></label> 
	<label> <input type="radio" class="do " id="advant_02" style="vertical-align: middle;" name="research" label="合作研发" value="02" /><span style="vertical-align: middle;">合作研发</span></label> 
	<label> <input type="radio" class="do " id="advant_03" style="vertical-align: middle;" name="research" label="引进消化吸收" value="03" /><span style="vertical-align: middle;">引进消化吸收</span></label>
<!-- 	<label> <input type="radio" class="do " id="advant_04" style="vertical-align: middle;" name="research" label="其他" value="04" /><span style="vertical-align: middle;">其他</span></label>
 -->	<input type="hidden" name="proposal/research_value" id="research_value" class="required" value="<x:out select="$xmlData/data/proposal/research_value" />" label="研发形式" /> 
	<input type="hidden" name="proposal/research_name" id="research_name" value="<x:out select="$xmlData/data/proposal/research_name" />" label="研发形式" /></td>
	</tr>
	<tr>
	<td  align="right" nowrap><span class="color_red">*</span>项目开始时间：</td>
	<td colspan="2">
		<c:set var="start_date"><x:out select="$xmlData/data/proposal/start_date" /></c:set>
		<cpt:date id="start_date" name="proposal/start_date" value="${start_date}" className="required date  dateCompare:end_date" label="项目开始时间" ></cpt:date> 
	</td>
	<td  align="right" nowrap><span class="color_red">*</span>项目结束时间：</td>
	<td colspan="2">
		<c:set var="end_date"><x:out select="$xmlData/data/proposal/end_date" /></c:set>
		<cpt:date id="end_date" name="proposal/end_date" className="required date" label="项目结束时间"  value="${end_date}" ></cpt:date> 
	</td>
	</tr>
	<tr>
	<td align="right" nowrap><span class="color_red">*</span>农业科技中所属产业领域：</td>
	<td nowrap  colspan="5" valign="middle">
	<label> <input type="radio" class="do"  style="vertical-align: middle;" name="agricultural_field" label="特色果品" value="01" /><span style="vertical-align: middle;">特色果品</span></label> 
	<label> <input type="radio" class="do"  style="vertical-align: middle;" name="agricultural_field" label="特种水产" value="02" /><span style="vertical-align: middle;">特种水产</span></label> 
	<label> <input type="radio" class="do"  style="vertical-align: middle;" name="agricultural_field" label="花卉苗木" value="03" /><span style="vertical-align: middle;">花卉苗木</span></label>
	<label> <input type="radio" class="do"  style="vertical-align: middle;" name="agricultural_field" label="设施蔬菜" value="04" /><span style="vertical-align: middle;">设施蔬菜</span></label>
	<label> <input type="radio" class="do"  style="vertical-align: middle;" name="agricultural_field" label="生态畜禽" value="05" /><span style="vertical-align: middle;">生态畜禽</span></label>
	<label> <input type="radio" class="do"  style="vertical-align: middle;" name="agricultural_field" label="优质茶叶" value="06" /><span style="vertical-align: middle;">优质茶叶</span></label>
	<label> <input type="radio" class="do"  style="vertical-align: middle;" name="agricultural_field" label="高效菌类" value="07" /><span style="vertical-align: middle;">高效菌类</span></label>
	<label> <input type="radio" class="do"  style="vertical-align: middle;" name="agricultural_field" label="有机肥料" value="08" /><span style="vertical-align: middle;">有机肥料</span></label>
	<label> <input type="radio" class="do"  style="vertical-align: middle;" name="agricultural_field" label="其他" value="09" /><span style="vertical-align: middle;">其他</span></label>
    <input type="hidden" name="proposal/agricultural_field_value" id="agricultural_field_value" class="required" value="<x:out select="$xmlData/data/proposal/agricultural_field_value" />" label="农业科技中所属产业领域" /> 
	<input type="hidden" name="proposal/agricultural_field_name" id="agricultural_field_name" value="<x:out select="$xmlData/data/proposal/agricultural_field_name" />" /></td>
	</tr>
	<tr>
	    <td  align="right" nowrap><span class="color_red">*</span>申报日期：</td>
		<td colspan="5">
			<c:set var="submit_date"><x:out select="$xmlData/data/proposal/submit_date" /></c:set>
			<cpt:date id="submit_date" name="proposal/submit_date" value="${submit_date}" className=" required date" label="申报日期"></cpt:date> 
		</td>
	</tr>
	<tr>
		<td class="t_bar2" colspan="6">合作社人员情况</td>
	</tr>
    <tr>
    <td align="right" width="20%"><span class="color_red">*</span>合作社现有人数：</td>
    <td width="15%"><input type="text" name="proposal/now_total" id="now_total" label="合作社人员情况-->合作社现有人数" class="input_css required valueCompare:tech_research:now_total" style="text-align: right" onfocus="InitInput.setNumber(this,9,0,0)" value="<x:out select="$xmlData/data/proposal/now_total"/>" /></td>
    <td width="15%" align="right" nowrap><span class="color_red">*</span>技术研发与技术服务人数：</td>
    <td width="20%" ><input type="text" name="proposal/tech_research" id="tech_research" label="合作社人员情况-->技术研发与技术服务人数" class="input_css required valueCompare:college_up:now_total" style="text-align: right" onfocus="InitInput.setNumber(this,9,0,0)" value="<x:out select="$xmlData/data/proposal/tech_research"/>" /></td>
    <td width="15%" align="right" nowrap><span class="color_red">*</span>其中本科以上人数：</td>
    <td width="15%" ><input type="text" name="proposal/college_up" id="college_up" label="合作社人员情况-->其中本科以上人数" class="input_css required" style="text-align: right" onfocus="InitInput.setNumber(this,9,0,0)" value="<x:out select="$xmlData/data/proposal/college_up"/>" /></td>
    </tr>
    <tr>
		<td class="t_bar2" colspan="6">合作社科技服务示范推广情况</td>
	</tr>
	<tr>
    <td align="right"><span class="color_red">*</span>入社成员户数：</td>
    <td><input type="text" name="proposal/household_num" id="household_num" label="合作社科技服务示范推广情况-->入社成员户数" class="input_css required " style="text-align: right" onfocus="InitInput.setNumber(this,9,0,0)" value="<x:out select="$xmlData/data/proposal/household_num"/>" /></td>
    <td align="right"><span class="color_red">*</span>带动农户数：</td>
    <td><input type="text" name="proposal/peasant_ousehold" id="tech_research" label="合作社科技服务示范推广情况-->带动农户数" class="input_css required" style="text-align: right" onfocus="InitInput.setNumber(this,9,0,0)" value="<x:out select="$xmlData/data/proposal/peasant_ousehold"/>" /></td>
    <td align="right"><span class="color_red">*</span>生产基地亩数：</td>
    <td><input type="text" name="proposal/production" id="production" label="合作社科技服务示范推广情况-->生产基地亩数" class="input_css required" style="text-align: right" onfocus="InitInput.setNumber(this,9,0,0)" value="<x:out select="$xmlData/data/proposal/production"/>" /></td>
    </tr>
    <tr>
    <td align="right"><span class="color_red">*</span>示范基地亩数：</td>
    <td><input type="text" name="proposal/demonstrate" id="demonstrate" label="合作社科技服务示范推广情况-->示范基地亩数" class="input_css required " style="text-align: right" onfocus="InitInput.setNumber(this,9,0,0)" value="<x:out select="$xmlData/data/proposal/demonstrate"/>" /></td>
    <td align="right"><span class="color_red">*</span>推广新品种数量：</td>
    <td><input type="text" name="proposal/new_variety" id="new_variety" label="合作社科技服务示范推广情况-->推广新品种数量" class="input_css required" style="text-align: right" onfocus="InitInput.setNumber(this,9,0,0)" value="<x:out select="$xmlData/data/proposal/new_variety"/>" /></td>
    <td align="right"><span class="color_red">*</span>推广新技术数量：</td>
    <td><input type="text" name="proposal/new_technology" id="new_technology" label="合作社科技服务示范推广情况-->推广新技术数量" class="input_css required" style="text-align: right" onfocus="InitInput.setNumber(this,9,0,0)" value="<x:out select="$xmlData/data/proposal/new_technology"/>" /></td>
    </tr>
    <tr>
		<td class="t_bar2" colspan="6"><span class="color_red">*</span>技术性服务收入情况</td>
	</tr>
	<tr align="center">
	<td>技术性服务收入情况</td>
	<td >${year - 3 }年度</td>
	<td >${year - 2 }年度</td>
	<td>增长率%</td>
	<td >${year - 1 }年度</td>
	<td>增长率%</td>
	</tr>
	<tr align="center">
	<td align="right"><span class="color_red">*</span>技术性服务收入（万元）：</td>
	<td ><input type="text" name="proposal/technology_serve2" id="technology_serve2" label="技术性服务收入情况-->${year-3 }年度技术性服务收入" onchange="setPre();" class="input_css required" style="text-align: right" onfocus="InitInput.setNumber(this,9,4,2)" value="<x:out select="$xmlData/data/proposal/technology_serve2"/>" /></td>
	<td ><input type="text" name="proposal/technology_serve" id="technology_serve" label="技术性服务收入情况-->${year-2 }年度技术性服务收入" onchange="setPre();" class="input_css required" style="text-align: right" onfocus="InitInput.setNumber(this,9,4,2)" value="<x:out select="$xmlData/data/proposal/technology_serve"/>" /></td>
	<td><input type="text" name="proposal/growth_rate_js" id="growth_rate_js" label="技术性服务收入${year-2 }年增长率" class="input_css gray" disabled style="text-align: right" onfocus="InitInput.setNumber(this,9,2,2)" value="<x:out select="$xmlData/data/proposal/growth_rate_js"/>" /></td>
	<td ><input type="text" name="proposal/technology_serve1" id="technology_serve1" label="技术性服务收入情况-->${year-1 }年度技术性服务收入" onchange="setPre();" class="input_css required" style="text-align: right" onfocus="InitInput.setNumber(this,9,4,2)" value="<x:out select="$xmlData/data/proposal/technology_serve1"/>" /></td>
	<td><input type="text" name="proposal/growth_rate" id="growth_rate" label="技术性服务收入${year-1 }年增长率" class="input_css gray" disabled style="text-align: right" onfocus="InitInput.setNumber(this,9,2,2)" value="<x:out select="$xmlData/data/proposal/growth_rate"/>" /></td>
	</tr>
	<tr align="center">
	<td align="right"><span class="color_red">*</span>服务企业（或农户）数：</td>
	<td ><input type="text" name="proposal/serve_business2" id="serve_business2" label="技术性服务收入情况-->${year-3 }年度服务企业（或农户）数" onchange="setPre();" class="input_css required" style="text-align: right" onfocus="InitInput.setNumber(this,9,0,0)" value="<x:out select="$xmlData/data/proposal/serve_business2"/>" /></td>
	<td ><input type="text" name="proposal/serve_business" id="serve_business" label="技术性服务收入情况-->${year-2 }年度服务企业（或农户）数" onchange="setPre();" class="input_css required" style="text-align: right" onfocus="InitInput.setNumber(this,9,0,0)" value="<x:out select="$xmlData/data/proposal/serve_business"/>" /></td>
	<td><input type="text" name="proposal/growth_rate1_fw" id="growth_rate1_fw" label="服务企业（或农户）数${year-2 }年度增长率" class="input_css gray" disabled style="text-align: right" onfocus="InitInput.setNumber(this,9,2,2)" value="<x:out select="$xmlData/data/proposal/growth_rate1_fw"/>" /></td>
	<td ><input type="text" name="proposal/serve_business1" id="serve_business1" label="技术性服务收入情况-->${year-1 }年度服务企业（或农户）数" onchange="setPre();" class="input_css required" style="text-align: right" onfocus="InitInput.setNumber(this,9,0,0)" value="<x:out select="$xmlData/data/proposal/serve_business1"/>" /></td>
	<td><input type="text" name="proposal/growth_rate1" id="growth_rate1" label="服务企业（或农户）数${year-1 }年度增长率" class="input_css gray" disabled style="text-align: right" onfocus="InitInput.setNumber(this,9,2,2)" value="<x:out select="$xmlData/data/proposal/growth_rate1"/>" /></td>
	</tr>
	<tr>
		<td class="t_bar2" colspan="6">合作社致富带动情况</td>
	</tr>
	<tr align="center">
	<td>合作社致富带动情况</td>
	<td >${year - 3 }年度</td>
	<td >${year - 2 }年度</td>
	<td>增长率%</td>
	<td >${year - 1 }年度</td>
	<td>增长率%</td>
	</tr>
	<tr align="center">
	<td nowrap align="right"><span class="color_red">*</span>入社农户户均农产品销售收入：</td>
	<td ><input type="text" name="proposal/in_agricultural_sales2" id="in_agricultural_sales2" onchange="setPre();" label="合作社致富带动情况-->${year-3 }年度入社农户户均农产品销售收入" class="input_css required" style="text-align: right" onfocus="InitInput.setNumber(this,9,4,2)" value="<x:out select="$xmlData/data/proposal/in_agricultural_sales2"/>" /></td>
	<td ><input type="text" name="proposal/in_agricultural_sales" id="in_agricultural_sales" onchange="setPre();" label="合作社致富带动情况-->${year-2 }年度入社农户户均农产品销售收入" class="input_css required" style="text-align: right" onfocus="InitInput.setNumber(this,9,4,2)" value="<x:out select="$xmlData/data/proposal/in_agricultural_sales"/>" /></td>
	<td><input type="text" name="proposal/growth_rate_rf" id="growth_rate_rf" label="入社农户户均农产品销售收入${year - 2 }年度增长率" class="input_css gray" disabled style="text-align: right" onfocus="InitInput.setNumber(this,9,2,2)" value="<x:out select="$xmlData/data/proposal/growth_rate_rf"/>" /></td>
	<td ><input type="text" name="proposal/in_agricultural_sales1" id="in_agricultural_sales1" onchange="setPre();" label="合作社致富带动情况-->${year-1 }年度入社农户户均农产品销售收入" class="input_css required" style="text-align: right" onfocus="InitInput.setNumber(this,9,4,2)" value="<x:out select="$xmlData/data/proposal/in_agricultural_sales1"/>" /></td>
	<td><input type="text" name="proposal/growth_rate2" id="growth_rate2" label="入社农户户均农产品销售收入${year - 1 }年度增长率" class="input_css gray" disabled style="text-align: right" onfocus="InitInput.setNumber(this,9,2,2)" value="<x:out select="$xmlData/data/proposal/growth_rate2"/>" /></td>
	</tr>
	<tr align="center">
	<td nowrap align="right"><span class="color_red">*</span>未入社农户户均农产品销售收入：</td>
	<td ><input type="text" name="proposal/out_agricultural_sales2" id="out_agricultural_sales2" onchange="setPre();" label="合作社致富带动情况-->${year-3 }年度未入社农户户均农产品销售收入" class="input_css required" style="text-align: right" onfocus="InitInput.setNumber(this,9,4,2)" value="<x:out select="$xmlData/data/proposal/out_agricultural_sales2"/>" /></td>
	<td ><input type="text" name="proposal/out_agricultural_sales" id="out_agricultural_sales" onchange="setPre();" label="合作社致富带动情况-->${year-2 }年度未入社农户户均农产品销售收入" class="input_css required" style="text-align: right" onfocus="InitInput.setNumber(this,9,4,2)" value="<x:out select="$xmlData/data/proposal/out_agricultural_sales"/>" /></td>
	<td><input type="text" name="proposal/growth_rate_wrf" id="growth_rate_wrf" label="未入社农户户均农产品销售收入${year-2 }年度增长率" class="input_css gray" disabled style="text-align: right" onfocus="InitInput.setNumber(this,9,2,2)" value="<x:out select="$xmlData/data/proposal/growth_rate_wrf"/>" /></td>
	<td ><input type="text" name="proposal/out_agricultural_sales1" id="out_agricultural_sales1" onchange="setPre();" label="合作社致富带动情况-->${year-1 }年度未入社农户户均农产品销售收入" class="input_css required" style="text-align: right" onfocus="InitInput.setNumber(this,9,4,2)" value="<x:out select="$xmlData/data/proposal/out_agricultural_sales1"/>" /></td>
	<td><input type="text" name="proposal/growth_rate3" id="growth_rate3" label="未入社农户户均农产品销售收入${year-1 }增长率" class="input_css gray" disabled style="text-align: right" onfocus="InitInput.setNumber(this,9,2,2)" value="<x:out select="$xmlData/data/proposal/growth_rate3"/>" /></td>
	</tr>
	<tr>
	<td colspan="5" align="right">（2012年度入社农户户均农产品销售收入/2012年度未入社农户户均农产品销售收入-1）*100%</td>
	<td align="center"><input type="text" name="proposal/growth_rate4" id="growth_rate4"  class="input_css gray" disabled  style="text-align: right"  value="<x:out select="$xmlData/data/proposal/growth_rate4"/>" /></td>
	</tr>
	<tr>
	<td align="right"><span class="color_red">*</span>合作社上年度营业收入（万元）：</td>
	<td colspan="5"><input type="text" name="proposal/income" id="income"  label="合作社致富带动情况-->合作社上年度营业收入" class="input_css required" style="text-align: right" onfocus="InitInput.setNumber(this,9,4,2)"   value="<x:out select="$xmlData/data/proposal/income"/>" /></td>
	</tr>
	<tr>
		<td class="t_bar2" colspan="6">申报项目资金情况（金额单位：万元）
		</td>
		</tr>
	
	<tr>
	<td   align="right" nowrap>项目计划投资总额：</td>
	<td  colspan="2">
	<input  name="proposal/xmjhtzze" id="xmjhtzze" label="项目计划投资总额" type="text"  class="input_css  gray" disabled style="text-align: right" onfocus="InitInput.setNumber(this,9,4,2)" value="<x:out select="$xmlData/data/proposal/xmjhtzze" />"/> 
	</td>
	<td   align="right" nowrap>其中：已完成投资：</td>
	<td  colspan="2">
	<input  name="proposal/ywctz" id="ywctz" class="gray " disabled label="其中：已完成投资" type="text" required class="input_css " style="text-align: right" onfocus="InitInput.setNumber(this,9,4,2)" value="<x:out select="$xmlData/data/proposal/ywctz" />"/> 
	</td>
	</tr>
	<tr>
	<td   align="right" nowrap>计划新增投资：</td>
	<td  colspan="2">
	<input  name="proposal/jhxztz" id="jhxztz" label="计划新增投资" type="text"  class="input_css  gray" disabled style="text-align: right" onfocus="InitInput.setNumber(this,9,4,2)" value="<x:out select="$xmlData/data/proposal/jhxztz" />"/> 
	</td>
	<td   align="right" nowrap>申请金额：</td>
	<td  colspan="2">
	<input  name="proposal/sqje" id="sqje" class="gray " disabled label="申请金额" type="text"  class="input_css " style="text-align: right" onfocus="InitInput.setNumber(this,9,4,2)" value="<x:out select="$xmlData/data/proposal/sqje" />"/> 
	</td>
	</tr>
	<tr>
		<td  align="right"  nowrap>项目类别：</td>
		<td colspan="2"><x:out select="$xmlData/data/proposal/sub_grant_name" />
		</td> 
		<td  align="right"  nowrap><span class="color_red">*</span>项目核准或备案文号：</td>
		<td  colspan="2">
		<input type="text" name="proposal/project_approval" label="项目核准或备案文号" class="input_css required" class="required" value="<x:out select="$xmlData/data/proposal/project_approval"/>" />
		</td>
		
	</tr>
	<tr>
	<td  align="right">支持方式：</td>
		<td  colspan="2">
			<span name="proposal/sponsor_category"><x:out select="$xmlData/data/proposal/sponsor_category" /></span> 
		</td>
		
		<td  align="right">资金级次：</td>
		<td colspan="2">
		<span  name="proposal/fund_level">市级</span>
		</td>
	</tr>
	<tr>
	<td  align="right" nowrap>归口管理部门：</td>
		<td  colspan="2"><span name="proposal/org_name">无锡市科学技术局</span> </td>
	    <td  align="right">管理类别：</td>
		<td  colspan="2">
		<span name="proposal/manage_category"><x:out select="$xmlData/data/proposal/manage_category" /></span>
		</td>
		
	</tr>
	<tr>
		<td align="right" nowrap><span class="color_red">*</span>项目所属产业：</td>
		<td nowrap colspan="5"><c:set var="industry">
				<x:out select="$xmlData/data/proposal/industry_value" />
			</c:set> <cpt:checkbox key="industry" name="industry" repeatColumn="5"
				style="border: 0px; padding: 0px; margin: 0px;float:left;"></cpt:checkbox>
			<input type="hidden" id="industry_value"
			name="proposal/industry_value" class="required" value="${industry}"
			label="项目所属产业"> <input type="hidden"
			name="proposal/industry_name"
			value="<x:out select="$xmlData/data/proposal/industry_name" />">
		</td>
	</tr>
	<tr>
	    <td  align="right">功能分类：</td>
		<td  colspan="5">
		<span name="proposal/grant_function"><x:out select="$xmlData/data/proposal/grant_function" /></span>
		</td>
		
	</tr>
	<tr>
	<td colspan="6" class="t_bar2">申请资助依据条款
	</tr>
	 <tr>
		<td colspan="6">
				&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
		<span name="proposal/policy_foundation"><x:out select="$xmlData/data/proposal/policy_foundation" /></span> 
		</td>
	</tr>
</table>
<br/>
<table class="t_css" width="100%" border="0" cellpadding="0" cellspacing="1" id="org1">
	
	<tr>
		<td    class="t_bar2" colspan="4">合作参与单位信息</td>
		
	</tr>
	<tr>
		<td    class="t_bar2" colspan="4">合作单位信息1</td>
		
	</tr>
	<tr>
		<td align="right"><span class="color_red" id="color1" style="display:none">*</span>单位名称：</td>
		<td colspan="3">
		<input  name="proposal/org_name1" label="合作单位信息1" type="text"  class="input_css " onchange="cydw('org1');" style="width: 725px;"  maxlength="100" value="<x:out select="$xmlData/data/proposal/org_name1" />"/>
		</td>
	</tr>
	<tr>
		<td align="right"><span class="color_red" id="color2" style="display:none">*</span>单位地址：</td>
		<td colspan="3">
		<input  name="proposal/address1" label="合作单位信息1-->地址" type="text"  class="input_css " onchange="cydw('org1');" style="width: 725px;"  maxlength="100" value="<x:out select="$xmlData/data/proposal/address1" />"/>
		</td>
	</tr>
	<tr>
	<td width="14%" align="right"><span class="color_red" id="color3" style="display:none">*</span>注册类型：</td>
          <td width="38%" align="left" colspan="1" >
          	<c:set var="nature1">{'id':'<x:out select="$xmlData/data/proposal/nature1_code" />','name':'<x:out select="$xmlData/data/proposal/nature1_name" />'}</c:set>
          	<cpt:tree key="nature_type" cacheable="false" className="hn_iuput_kuang gray" readonly="true" value="${nature1}"  label="合作单位信息1-->注册类型"
          		id="nature1" showPattern="current" shieldPattern="0" topCheckbox="false" onClick="initTreeValue2"/>
	        <input id="nature1_code" type="hidden" name="proposal/nature1_code" class="" label="合作单位信息1-->注册类型" value="<x:out select="$xmlData/data/proposal/nature1_code" />"/>
            <input id="nature1_name" type="hidden" name="proposal/nature1_name"  value="<x:out select="$xmlData/data/proposal/nature1_name" />"/>
          </td>
	<td align="right"><span class="color_red" id="color4" style="display:none">*</span>组织机构代码：</td>
	<td><input  name="proposal/org_no1" label="合作单位信息1-->组织机构代码" type="text"  class="input_css " onchange="cydw('org1');"  maxlength="20" value="<x:out select="$xmlData/data/proposal/org_no1" />"/></td>
	</tr>
	<tr>
	<td align="right"><span class="color_red" id="color5" style="display:none">*</span>联系人：</td>
	<td><input  name="proposal/lxr_name1" label="合作单位信息1-->联系人姓名" type="text"  class="input_css " onchange="cydw('org1');"  maxlength="20" value="<x:out select="$xmlData/data/proposal/lxr_name1" />"/></td>
	<td align="right"><span class="color_red" id="color6" style="display:none">*</span>电话：</td>
	<td><input  name="proposal/lxr_tel1" label="合作单位信息1-->联系人电话" type="text"  class="input_css " onchange="cydw('org1');"  maxlength="20" value="<x:out select="$xmlData/data/proposal/lxr_tel1" />"/></td>
	</tr>
</table>
<table class="t_css" width="100%" border="0" cellpadding="0" cellspacing="1" id="org2">
<tr>
		<td    class="t_bar2" colspan="4">合作单位信息2</td>
		
	</tr>
	<tr>
		<td align="right"><span class="color_red" id="color1" style="display:none">*</span>单位名称：</td>
		<td colspan="3">
		<input  name="proposal/org_name2" label="合作单位信息2" type="text" required class="input_css " onchange="cydw('org2');"  style="width: 725px;"  maxlength="100" value="<x:out select="$xmlData/data/proposal/org_name2" />"/>
		</td>
	</tr>
	<tr>
		<td align="right"><span class="color_red" id="color2" style="display:none">*</span>单位地址：</td>
		<td colspan="3">
		<input  name="proposal/address2" label="合作单位信息2-->地址" type="text" required class="input_css " onchange="cydw('org2');" style="width: 725px;"  maxlength="100" value="<x:out select="$xmlData/data/proposal/address2" />"/>
		</td>
	</tr>
	<tr>
	<td width="14%" align="right"><span class="color_red" id="color3" style="display:none">*</span>注册类型：</td>
          <td width="38%" align="left" colspan="1" >
          	<c:set var="nature2">{'id':'<x:out select="$xmlData/data/proposal/nature2_code" />','name':'<x:out select="$xmlData/data/proposal/nature2_name" />'}</c:set>
          	<cpt:tree key="nature_type" cacheable="false" className="hn_iuput_kuang gray" readonly="true" value="${nature2}" label="合作单位信息2-->注册类型"
          		id="nature2" showPattern="current" shieldPattern="0" topCheckbox="false" onClick="initTreeValue2"/>
	        <input id="nature2_code" type="hidden" name="proposal/nature2_code"  class="" label="合作单位信息2-->注册类型" value="<x:out select="$xmlData/data/proposal/nature2_code" />"/>
            <input id="nature2_name" type="hidden" name="proposal/nature2_name"  value="<x:out select="$xmlData/data/proposal/nature2_name" />"/>
          </td>
	<td align="right"><span class="color_red" id="color4" style="display:none">*</span>组织机构代码：</td>
	<td><input  name="proposal/org_no2" label="合作单位信息2-->组织机构代码" type="text"  class="input_css " onchange="cydw('org2');"  maxlength="20" value="<x:out select="$xmlData/data/proposal/org_no2" />"/></td>
	</tr>
	<tr>
	<td align="right"><span class="color_red" id="color5" style="display:none">*</span>联系人：</td>
	<td><input  name="proposal/lxr_name2" label="合作单位信息2-->联系人姓名" type="text"  class="input_css "  onchange="cydw('org2');" maxlength="20" value="<x:out select="$xmlData/data/proposal/lxr_name2" />"/></td>
	<td align="right"><span class="color_red" id="color6" style="display:none">*</span>电话：</td>
	<td><input  name="proposal/lxr_tel2" label="合作单位信息2-->联系人电话" type="text"  class="input_css " onchange="cydw('org2');"  maxlength="20" value="<x:out select="$xmlData/data/proposal/lxr_tel2" />"/></td>
	</tr>
</table>
<br/>
<div class="t_bar">
	<span class="color_red">*</span>合作社成员基本情况
</div>
	<table  id="tblCooperation" border="0" cellspacing="0" cellpadding="0" class="table01" >
		<thead>
			<tr>
                <th width="5%" align="center">选择</th>
                <th width="5%" align="center">序号</th>
				<th width="20%" align="center">成员姓名或名称</th>
				<th width="11%" align="center">出资额（万元）</th>
				<th width="12%" align="center">出资方式</th>
				<th width="12%" align="center">证件类型</th>
				<th width="15%" align="center">证件号码</th>
				<th width="20%" align="center">住所</th>
			</tr>
		<tbody id="tab">
					<tr style="display:none">
						<td align="center">&nbsp;
							<input type="radio" class="radiobutton" name=selCooperation >
						</td>
						<td align="center">&nbsp;
							<span name="cooperations|cooperation[0]@seq_no" >[index]</span> 
						</td>
						<td>
							<input type="text" name="cooperations|cooperation[0]|name"  class=" input_text required" maxlength="50" style="width:80%" label="成员姓名或名称"/>
						</td>
						<td>
							<input type="text" name="cooperations|cooperation[0]|contributive"  label="出资额" onfocus="InitInput.setNumber(this,7,4,2)" style="text-align:right;width:80%" class="input_text required" />
						</td> 
						<td>
							<input type="text" name="cooperations|cooperation[0]|investment_type" label="出资方式"  maxlength="50"  style="width:80%" class="input_text required" />
						</td> 
						<td>
						    <cpt:select id="id_type_[index]" name="id_type" key="id_type"  onChange="initControlValue(this.id);setIdNoCheck(this.id);" value="" className="common_select"></cpt:select>
				            <input type="hidden" name="cooperations|cooperation[0]|id_type_value" value="" class="required" label="证件类型"/>
				            <input type="hidden" name="cooperations|cooperation[0]|id_type_name" value=""/>
						</td> 
						<td>
							<input type="text" name="cooperations|cooperation[0]|id_no"  label="证件号码" maxlength="50"  style="width:80%" class="input_text required" />
						</td> 
						<td>
							<input type="text" name="cooperations|cooperation[0]|residence"  label="住所" maxlength="50" style="width:80%" class="input_text required" />
						</td> 
					</tr>
					
					<c:set value="0" var="index" scope="page"/>
					<x:forEach select="$xmlData/data/cooperations/cooperation" var="cooperation">
					
					<c:choose>
						<c:when test="${index<10}" ><c:set value="0" var="flag" scope="page"/></c:when>
						<c:otherwise><c:set value="" var="flag" scope="page"/></c:otherwise>
					</c:choose>
					<tr >
						<td align="center">&nbsp;
							<input type="radio" class="radiobutton" name="selCooperation" >
						</td>
						<td align="center">&nbsp;
							<span name="cooperations/cooperation[${flag}${index}]@seq_no" ><x:out select="$cooperation/@seq_no"/></span> 
						</td>
						<td>
							<input type="text" name="cooperations/cooperation[${flag}${index}]/name"   style="width:80%"   class=" input_text required" value="<x:out select="$cooperation/name"/>" label="成员姓名或名称" maxlength="50"/>
						</td>
						<td >
							<input type="text" name="cooperations/cooperation[${flag}${index}]/contributive"  onfocus="InitInput.setNumber(this,7,4,2)"   label="出资额" style="text-align:right;width:80%"  class=" input_text required" value="<x:out select="$cooperation/contributive" />"/>
						</td> 
						<td >
							<input type="text" name="cooperations/cooperation[${flag}${index}]/investment_type" style="width:80%"  class=" input_text required" value="<x:out select="$cooperation/investment_type"/>" label="出资方式" maxlength="50"/>
						</td> 
						<td >
						    <c:set var="id_type_value"><x:out select="$cooperation/id_type_value"/></c:set>
							<cpt:select id="id_type_${index}" name="id_type" key="id_type"  onChange="initControlValue(this.id);setIdNoCheck(this.id);" value="${id_type_value }" className="common_select"></cpt:select>
				            <input type="hidden" name="cooperations/cooperation[${flag}${index}]/id_type_value" value="<x:out select="$cooperation/id_type_value"/>" class="required" label="证件类型"/>
				            <input type="hidden" name="cooperations/cooperation[${flag}${index}]/id_type_name" value="<x:out select="$cooperation/id_type_name"/>"/>
						</td> 
						<td >
							<input type="text" name="cooperations/cooperation[${flag}${index}]/id_no" style="width:80%"  class=" input_text required" value="<x:out select="$cooperation/id_no"/>" label="证件号码" maxlength="50"/>
						</td> 
						<td >
							<input type="text" name="cooperations/cooperation[${flag}${index}]/residence" style="width:80%"  class=" input_text required" value="<x:out select="$cooperation/residence"/>" label="住所" maxlength="50"/>
						</td> 
					</tr>
					<c:set value="${index+1}" var="index" scope="page"/>
					</x:forEach>
					
				</tbody>
					</table>
					<table width="98%" align="center">
					<tr ><td>
					<input class="button" name="cmdAddbefore" type=button value="添加" onclick="addNewRow('tblCooperation');try{top.resizeFrame();}catch(e){};">
					<input class="button" name="cmdMovePrev" type=button value="上移" onclick="movePrev('tblCooperation','selCooperation')">
					<input class="button" name="cmdMoveNext" type=button value="下移" onclick="moveNext('tblCooperation','selCooperation')">
					<input class="button" name="cmddel" type=button  value="删除" onclick="deleteSelectedRow('tblCooperation','合作社成员');">
					</td></tr>
	</table>
	<table  border="0" cellspacing="0" cellpadding="0" class="table01 t_css"  id="basicInfo3">
	<tr>
	<td align="right" colspan="3" width="30%">成员总数（名）:</td>
	<td colspan="5" width="70%"><input type="text" name="proposal/total_member" onchange="setTotalPre();" id="total_member" label="成员总数" class="input_css required valueGreatEqual:total_member:peasant_member" style="text-align: right" onfocus="InitInput.setNumber(this,9,0,0)" value="<x:out select="$xmlData/data/proposal/total_member"/>" /></td>
	</tr>
	<tr>
	<td align="right" colspan="3" width="30%">农民成员（名）:</td>
	<td colspan="2" width="23%"><input type="text" name="proposal/peasant_member" onchange="setTotalPre();"  id="peasant_member" label="农民成员" class="input_css required " style="text-align: right" onfocus="InitInput.setNumber(this,9,0,0)" value="<x:out select="$xmlData/data/proposal/peasant_member"/>" /></td>
	<td align="right" width="12%">所占比例（%）:</td>
	<td colspan="2" width="35%"><input type="text" name="proposal/peasant_member_pre" id="peasant_member_pre" label="农民成员所占比例" class="input_css gray " disabled style="text-align: right" onfocus="InitInput.setNumber(this,9,0,0)" value="<x:out select="$xmlData/data/proposal/peasant_member_pre"/>" /></td>
	</tr>
	<tr>
	<td align="right" colspan="3">企业、事业单位或社会团体成员（名）:</td>
	<td colspan="2"><input type="text" name="proposal/other_member" id="other_member" onchange="setTotalPre();"  label="企业、事业单位或社会团体成员" class="input_css required valueGreatEqual:total_member:other_member" style="text-align: right" onfocus="InitInput.setNumber(this,9,0,0)" value="<x:out select="$xmlData/data/proposal/other_member"/>" /></td>
	<td align="right" >所占比例（%）:</td>
	<td colspan="2"><input type="text" name="proposal/other_member_pre" id="other_member_pre" label="企业、事业单位或社会团体成员所占比例" class="input_css gray " disabled style="text-align: right" onfocus="InitInput.setNumber(this,9,0,0)" value="<x:out select="$xmlData/data/proposal/other_member_pre"/>" /></td>
	</tr>
	</table>
	<br/>
<table class="t_css" width="100%" border="0" cellpadding="0" id="basicInfo2"
	cellspacing="1">
	
<tr>		<td colspan="8" class="t_bar2">人员信息</td></tr>
	
<tr>
		<td  align="right"><span class="color_red">*</span>项目联系人：</td>
		<td  >
			<input  name="proposal/contact_psn_cname" label="项目联系人" type="text" required class="input_css required"   maxlength="20" value="<x:out select="$xmlData/data/proposal/contact_psn_cname" />"/> 
		</td>
		<td  align="right"><span class="color_red">*</span>联系电话：</td>
		<td  >
			<input  name="proposal/contact_psn_tel" label="联系电话" type="text" required class="input_css required"   maxlength="20" value="<x:out select="$xmlData/data/proposal/contact_psn_tel" />"/> 
		</td>
		<td  align="right"><span class="color_red">*</span>联系手机：</td>
		<td  >
			<input  name="proposal/contact_psn_mobile" label="联系手机" type="text" required maxlength="11" required class="input_css required mobile"   maxlength="20" value="<x:out select="$xmlData/data/proposal/contact_psn_mobile" />"/> 
		</td>
		<td  align="right"><span class="color_red">*</span>电子邮箱：</td>
		<td  >
			<input  name="proposal/contact_psn_email" label="电子邮箱" type="text" required class="input_css required email"   maxlength="50" value="<x:out select="$xmlData/data/proposal/contact_psn_email" />"/> 
		</td>
	</tr>
	<tr>
		<td  align="right">项目负责人：</td>
		<td>
		    <span name="proposal/fzr_psnname" ><x:out select="$xmlData/data/zh_persons/zh_person[@submit_psn='1']/basic_info/zh_name" /></span>
		</td>
		<td  align="right">联系电话：</td>
		<td  >
		<span name="proposal/fzr_tel" ><x:out select="$xmlData/data/zh_persons/zh_person[@submit_psn='1']/contact/tel_work" /></span>
		</td>
		<td  align="right">联系手机：</td>
		<td  >
		<span name="proposal/fzr_mobile" ><x:out select="$xmlData/data/zh_persons/zh_person[@submit_psn='1']/contact/mobile" /></span>
		</td>
		<td  align="right">电子邮箱：</td>
		<td  >
		<span name="proposal/fzr_mail"><x:out select="$xmlData/data/zh_persons/zh_person[@submit_psn='1']/contact/email" /></span>
		</td>
	</tr>
</table>


<script type="text/javascript">

$(function(){
	cydw('org1');
	cydw('org2');
	$("#tblCooperation").find("select").each(function(){
		setIdNoCheck($(this).attr("id"));
	});
});

function cydw(id){
	var count =0 ;
	$("#"+id).find("input[type='text']").each(function(){
		if($.trim($(this).val()) != ''){
			count +=1;
		}
	});
	if(count != 0){
		$("#"+id).find("input[type='text']").each(function(){
			$(this).addClass("required");
		});
		$("#"+id).find("span[id^='color']").each(function(){
			$(this).css('display','');
		});
	}else{
		$("#"+id).find("input[type='text']").each(function(){
			$(this).removeClass("required");
	});
		$("#"+id).find("span[id^='color']").each(function(){
			$(this).css('display','none');
		});
	}
}

function initTreeValue2CallBack(){
	cydw('org1');
	cydw('org2');
}
function setEmptyValueForTree(id){
	$("#"+id).val("");
	$("#"+id+"_hideId").val("");
	$("#"+id+"_hideName").val("");
	$("#"+id+"_code").val("");
	$("#"+id+"_value").val("");
	$("#"+id+"_name").val("");
	$("#"+id + ",[name$='/"+id+"_code']" + ",[name$='/"+id+"_name'],[name$='/"+id+"_value']").val("");
	$("#sqdm").val("");
	cydw('org1');
	cydw('org2');
}

function setPre(){
	var in_agricultural_sales1 = $("#in_agricultural_sales1").val();
	var out_agricultural_sales1 = $("#out_agricultural_sales1").val();
	if(out_agricultural_sales1 == 0 || out_agricultural_sales1 == ''){
		$("#growth_rate4").val("0.00");
	}else{
		$("#growth_rate4").val(formatVal((in_agricultural_sales1/out_agricultural_sales1-1)*100));
	}
	var technology_serve = $("#technology_serve").val();    //2011
	var technology_serve1 = $("#technology_serve1").val(); //2012
	var technology_serve2 = $("#technology_serve2").val(); //2010
	if(technology_serve == 0 || technology_serve == ''){
		$("#growth_rate").val("0.00");
	}else{
		$("#growth_rate").val(formatVal((technology_serve1-technology_serve)*100/technology_serve));
	}
	if(technology_serve2 == 0 || technology_serve2 == ''){
		$("#growth_rate_js").val("0.00");
	}else{
		$("#growth_rate_js").val(formatVal((technology_serve-technology_serve2)*100/technology_serve2));
	}
	var serve_business = $("#serve_business").val();
	var serve_business1 = $("#serve_business1").val();
	var serve_business2 = $("#serve_business2").val();
	if(serve_business == 0 || serve_business == ''){
		$("#growth_rate1").val("0.00");
	}else{
		$("#growth_rate1").val(formatVal((serve_business1-serve_business)*100/serve_business));
	}
	if(serve_business2 == 0 || serve_business2 == ''){
		$("#growth_rate1_fw").val("0.00");
	}else{
		$("#growth_rate1_fw").val(formatVal((serve_business-serve_business2)*100/serve_business2));
	}
	
	var in_agricultural_sales = $("#in_agricultural_sales").val();
	var in_agricultural_sales2 = $("#in_agricultural_sales2").val();
	if(in_agricultural_sales == 0 || in_agricultural_sales == ''){
		$("#growth_rate2").val("0.00");
	}else{
		$("#growth_rate2").val(formatVal((in_agricultural_sales1-in_agricultural_sales)*100/in_agricultural_sales));
	}
	if(in_agricultural_sales2 == 0 || in_agricultural_sales2 == ''){
		$("#growth_rate_rf").val("0.00");
	}else{
		$("#growth_rate_rf").val(formatVal((in_agricultural_sales-in_agricultural_sales2)*100/in_agricultural_sales2));
	}
	
	var out_agricultural_sales = $("#out_agricultural_sales").val();
	var out_agricultural_sales2 = $("#out_agricultural_sales2").val();
	if(out_agricultural_sales == 0 || out_agricultural_sales == ''){
		$("#growth_rate3").val("0.00");
	}else{
		$("#growth_rate3").val(formatVal((out_agricultural_sales1-out_agricultural_sales)*100/out_agricultural_sales));
	}
	if(out_agricultural_sales2 == 0 || out_agricultural_sales2 == ''){
		$("#growth_rate_wrf").val("0.00");
	}else{
		$("#growth_rate_wrf").val(formatVal((out_agricultural_sales-out_agricultural_sales2)*100/out_agricultural_sales2));
	}
}

function setIdNoCheck(idTypeSelectId) {
	var parentTd = $("#"+idTypeSelectId).parent("td");
	var id_type_value = parentTd.find("input[name$='id_type_value']").val();
	var idNo = parentTd.next("td").find("input[name$='id_no']");
	if (id_type_value == 1) {
		idNo.addClass("idCard");
	} else {
		idNo.removeClass("idCard");
	}
}

function setTotalPre(){
	var total_member = $("#total_member").val();
	var peasant_member = $("#peasant_member").val();
	var other_member =$("#other_member").val();
	if(total_member==0 || total_member==''){
		$("#peasant_member_pre").val("0.00");
		$("#other_member_pre").val("0.00");
	}else{
		$("#peasant_member_pre").val(formatVal(peasant_member*100/total_member));
		$("#other_member_pre").val(formatVal(other_member*100/total_member));
	}
}
</script>